﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderChangeLog.aspx.cs" Inherits="UI_Report_OrderChangeLog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>订单Log</title>
    <script src="../../js/common.js" type="text/javascript"></script> 
    <link href="../../css/admin.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>

    <script type ="text/javascript" >
        $(function () {
            var _$OrderLog = $("#OrderLog");
            _$OrderLog.datagrid({
                border: true,
                height: 650,
                width: 1100,
                title: '订单Log...',
                remoteSort: false,
                nowrap: true,
                striped: false,
                pageSize: 50,
                sortName: 'OrderSalesRecordNumber',
                sortOrder: 'desc',
                loadMsg: "正在加载,请稍后...",
                frozenColumns: [[
                    { title: '账户', field: 'Account', width: 120, sortable: true },
	                { title: 'OrderLineItemId', field: 'OrderLineItemId', width: 200, sortable: true },
                    { title: 'OrderSalesRecordNumber', field: 'OrderSalesRecordNumber', width: 100, sortable: true }
				  ]],
                columns: [[
                    { title: '状态', field: 'StatusName', width: 80, sortable: true },
	                { title: '保留原因', field: 'OrderRetentionReson', width: 100, sortable: true },
	                { title: 'Standard', field: 'Standard', width: 150, sortable: true },
                    { title: '付款时间', field: 'PDate', width: 120, sortable: true },
                    { title: '匹配时间', field: 'MatchDate', width: 120, sortable: true },
                    { title: '备注', field: 'Memo', width: 200, sortable: true },
                    { title: '修改时间', field: 'Mtime', width: 120, sortable: true },
                    { title: '修改人', field: 'Muser', width: 80, sortable: true }
				]],
                pagination: true,
                rownumbers: true,
                singleSelect: false,
                pageList: [10, 20, 50, 100],
                queryParams: {
                    "OrderId": "",
                    "Account": "",
                    "beginDate":"",
                    "endDate":""
                }
            });

            $("#btnQuery").click(function () {
                if (!$("#divContent").form('validate'))
                    return;
                var OrderId = $("#txtOrderId").val();
                var Account = $("#ddlAccount").combobox('getValue');
                var beginDate = $("#beginDate").datebox('getValue');
                var endDate = $("#endDate").datebox('getValue');
                _$OrderLog.datagrid({
                    url: "../../TableHanders.aspx?act=q&tid=1080&type=0",
                    queryParams: {
                        "OrderId": OrderId,
                        "Account": Account,
                        "beginDate":beginDate,
                        "endDate":endDate
                    }
                });
            });
        });
	</script>	
</head>
<body>
    <form id="form1" runat="server" style="width :1100px;">
    <div>
        <span class="Body_Title">》》<%=this.Title %></span>
    </div>
    <div id="divContent" class="easyui-panel" title="请输入查询条件..." style="margin-bottom:5px;">
           <table >
                 <tr>                  
                    <td>订单号:</td>
                    <td>
            	        <input id="txtOrderId" runat="server" style="width:200px;" />
                    </td>
                      <td>账户:</td>
                    <td>
            	        <select  id="ddlAccount" runat="server" class="easyui-combobox" style="width:140px;"></select>
                    </td>         
                    <td>修改时间范围:</td>
                     <td>
                        <input id="beginDate" type="text" class ="easyui-datetimebox" runat="server"  required="true" style="width:150px"/>
                    </td>
                    <td > -</td>
                    <td> 
                        <input id="endDate" type="text" class ="easyui-datetimebox" runat="server"  required="true" style="width:150px"/></td>                            
                    <td> 
                        <a id="btnQuery"  href ="#"  class="easyui-linkbutton" icon="icon-search" >Query</a></td>                   
                </tr>
             </table>
              <table  id="OrderLog" runat="server"></table>
        </div>
    </form>
</body>
</html>
